import { Injectable } from '@angular/core';

import { App } from "ionic-angular";
import { Config } from "ionic-angular";
import { Reloading } from "./reloading";
import { LoadingOptions } from "ionic-angular";

@Injectable()
export class ReloadingController {

  constructor(private _app: App, public config: Config) { }

  /**
   * Create a loading indicator. See below for options.
   * @param {LoadingOptions} [opts] Loading options
   * @returns {Loading} Returns a Loading Instance
   */
  create(opts: LoadingOptions = {}) {
    return new Reloading(this._app, opts, this.config);
  }

}
